package com.itrustsolution.rms.entities;
// Generated 25 Mei 11 22:19:57 by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * RskRiskControlType generated by hbm2java
 */
@Entity
@Table(name="rsk_risk_control_type"
    ,catalog="rms"
)
public class RskRiskControlType  implements java.io.Serializable {


     private Integer riskControlTypeId;
     private String risckControlTypeName;
     private int riskControlTypeIsactive;
     private int riskControlTypeIsdeleted;
     private Set<RskRiskControl> rskRiskControls = new HashSet(0);

    public RskRiskControlType() {
    }

	
    public RskRiskControlType(String risckControlTypeName, int riskControlTypeIsactive, int riskControlTypeIsdeleted) {
        this.risckControlTypeName = risckControlTypeName;
        this.riskControlTypeIsactive = riskControlTypeIsactive;
        this.riskControlTypeIsdeleted = riskControlTypeIsdeleted;
    }
    public RskRiskControlType(String risckControlTypeName, int riskControlTypeIsactive, int riskControlTypeIsdeleted, Set rskRiskControls) {
       this.risckControlTypeName = risckControlTypeName;
       this.riskControlTypeIsactive = riskControlTypeIsactive;
       this.riskControlTypeIsdeleted = riskControlTypeIsdeleted;
       this.rskRiskControls = rskRiskControls;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="RISK_CONTROL_TYPE_ID", unique=true, nullable=false)
    public Integer getRiskControlTypeId() {
        return this.riskControlTypeId;
    }
    
    public void setRiskControlTypeId(Integer riskControlTypeId) {
        this.riskControlTypeId = riskControlTypeId;
    }
    
    @Column(name="RISCK_CONTROL_TYPE_NAME", nullable=false, length=50)
    public String getRisckControlTypeName() {
        return this.risckControlTypeName;
    }
    
    public void setRisckControlTypeName(String risckControlTypeName) {
        this.risckControlTypeName = risckControlTypeName;
    }
    
    @Column(name="RISK_CONTROL_TYPE_ISACTIVE", nullable=false)
    public int getRiskControlTypeIsactive() {
        return this.riskControlTypeIsactive;
    }
    
    public void setRiskControlTypeIsactive(int riskControlTypeIsactive) {
        this.riskControlTypeIsactive = riskControlTypeIsactive;
    }
    
    @Column(name="RISK_CONTROL_TYPE_ISDELETED", nullable=false)
    public int getRiskControlTypeIsdeleted() {
        return this.riskControlTypeIsdeleted;
    }
    
    public void setRiskControlTypeIsdeleted(int riskControlTypeIsdeleted) {
        this.riskControlTypeIsdeleted = riskControlTypeIsdeleted;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="rskRiskControlType")
    public Set<RskRiskControl> getRskRiskControls() {
        return this.rskRiskControls;
    }
    
    public void setRskRiskControls(Set<RskRiskControl> rskRiskControls) {
        this.rskRiskControls = rskRiskControls;
    }




}


